package model;

import javax.swing.Icon;

/**
 *
 * @author Joachim
 */
public class GameTile extends Tile{

    protected Icon icon;

    /**
     * Creates a new Tile with a static image
     * @param x The x position of the Tile
     * @param y The y position of the Tile
     * @param icon The Icon to display
     */
    public GameTile(int x, int y, Icon icon) {
        super(x, y);
        this.icon = icon;
    }

    /**
     * Get the value of icon
     *
     * @return the value of icon
     */
    public Icon getIcon() {
        return icon;
    }

    /**
     * Set the value of icon
     *
     * @param icon new value of icon
     */
    public void setIcon(Icon icon) {
        this.icon = icon;
    }

}
